package com.itheima.wms.mapper;

import com.itheima.wms.pojo.Location;
import com.itheima.wms.pojo.LocationDto;
import com.itheima.wms.pojo.LocationPageQueryVo;
import com.itheima.wms.pojo.LocationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LocationMapper {
    public Long queryLocationCount();

    public List<Location> queryLocationPageByCondition(@Param("start") Integer start, @Param("pageSize") Integer pageSize, @Param("locationPageQueryVo") LocationPageQueryVo locationPageQueryVo);

    public void addLocation(Location location);

    public Location queryLocationById(Long id);

    public void delete(Long id);

    public void update(Location location);

    public void updateOnlyStatus(Location location);

    public void plusIncludeNum(Long id);

    public void minusIncludeNum(Long id);

    List<LocationVO> locationDetail(LocationDto locationDto);
}
